// src/components/activity/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    goods: Object,
    specialId: String,
    specialCode: String,
    activityType:String
  },

  /**
   * 组件的初始数据
   */
  data: {},

  /**
   * 组件的方法列表
   */
  methods: {
    goGoods(event) {
      const goodsId = this.properties.goods.id
      const specialCode = this.properties.specialCode
      wx.navigateTo({
        url: `/pages/goodsDetail/index?id=${goodsId}&scode=${specialCode}`
      })
    }
  }
})
